<?php
require_once("../inc/config.php");
require_once("../inc/function.php");

       if(!(isset($_SESSION['user']) && ($_SESSION['user'] == true))){
        header("Location: index.php");
        exit;		              
    }  

	$act = (isset($_REQUEST["act"])) ? $_REQUEST["act"] : "";
	$mod=(isset($_REQUEST["mod"])) ? $_REQUEST["mod"] : "";
?>
<section id="main" class="column">		
		<h4 class="alert_info">Welcome to Mango Manage.</h4>
		
<script language="javascript" src="openwysiwyg/wysiwyg.js"></script>
<script language="javascript" src="../inc/him.js"></script>


<?
	switch($act){
		case "nav":
        	echo" <div id=navar>
			<div class=navar_title>Admin Control Panel</div>
			<div class=navar_link><a target=_blank href=../>Trang chủ</a> | 
			<a  target=_top href=logout.php>Thoát</a> 
			</div></div>";
		break;
		case "left": include("left.php");break;
		case "baohanh": include("mod/baohanh.php");break;
		case "main":echo"<center>Welcome to Admin Control Panel!</center>";break;
		case 'categories': include('mod/categories.php'); break;
		case 'phukien': include('mod/phukien.php'); break;
		case 'product': include('mod/product.php'); break;
		case 'user': include('mod/user.php'); break;
		case 'config': include('mod/siteconfig.php'); break;
		case 'lienhe': include('mod/lienhe.php'); break;
		case 'huongdanmua': include('mod/huongdanmua.php'); break;
		case 'banner': include('mod/banner.php'); break;
		case 'gioithieu': include('mod/gioithieu.php'); break;
		case 'contact': include('mod/contact.php'); break;  
		case 'adssp': include('mod/adssp.php'); break;  
		case 'ads2ben': include('mod/ads2ben.php'); break;  
		case 'comments': include('mod/comments.php'); break;  

		case 'yahoo': include('mod/yahoo.php'); break;
		case 'oldproduct': include('mod/oldproduct.php'); break;
		case 'newstop': include('mod/newstop.php'); break; 
		case 'tinnhanh': include('mod/tinnhanh.php'); break; 
		case 'leftads': include('mod/leftads.php'); break; 
		case 'rightads': include('mod/rightads.php'); break; 
		case 'centerads': include('mod/centerads.php'); break; 
		case 'rightslide': include('mod/rightslide.php'); break; 
		case 'rightnews': include('mod/rightnews.php'); break; 
		case 'leftnews': include('mod/leftnews.php'); break; 
		case 'mainads': include('mod/mainads.php'); break; 
		case 'danhmucphukien': include('mod/danhmucphukien.php'); break;  
		case 'menu': include('mod/menu.php'); break;  
	}
?> 



		<div class="spacer"></div>
	</section>